In [4]:
from IPython.display import YouTubeVideo
YouTubeVideo('oHg5SJYRHA0')
Out[4]:
In [29]:
%%HTML
<h1>Hello World</h1>
<pre>
int main() {
return 0;
}
</pre>
In [30]:
!pip freeze
In [13]:
import plotly
import pandas as pd
df = pd.read_csv('water.csv')
del df['Remarks']
df[df['Year']>2010]
Out[13]:
In [22]:
import plotly.plotly as py
import plotly.graph_objs as go
quantities = go.Scatter(
x = df['Year'],
y = df['quantity'],
name = 'quantity'
)
expenditures = go.Scatter(
x = df['Year'],
y = df['expenditure'],
name = 'expenditure'
)
data = [quantities, expenditures]
plotly.tools.set_credentials_file(username='g0vhkio', api_key='EExyKfq9fHDaO8Or7NXL')
py.iplot(data, filename='basic-line', title='Water')
Out[22]:
In [ ]:
In [ ]:
In [ ]: